@echo off

:: rem rtds codeservice db info
:: set rtds_code_db_url="jdbc:mysql://localhost:3306/rtds?characterEncoding=utf8"
:: set rtds_code_db_username="root"
:: set rtds_code_db_password=""


rem =============== Please do not modify the following content =============== 
rem go to script directory
cd "%~dp0"

cd ..

rem package code-service and assets-service

echo "==== starting to build code-service and assets-service and batch-service ===="

call mvn clean package -DskipTests -pl rdws-codeservice,rdws-assetsservice,rdws-batchservice -am -Drdws_profile=dev

echo "==== building code-service and assets-service and batch-service finished ===="

echo "==== starting to build management ===="

call mvn clean package -DskipTests -pl rdws-management -am -Drdws_profile=dev

echo "==== building management finished ===="

pause
